﻿using DuToanT2.Models;
using DuToanT2.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DuToanT2.Services
{
    public class UserService : UnitOfWork
    {

        private UserRepository userRepository;

        public UserRepository UserRepository
        {
            get
            {
                if (this.userRepository == null)
                {
                    this.userRepository = new UserRepository(context);
                }
                return userRepository;
            }
        }
    }
}
